package param

import "github.com/gin-gonic/gin"

type Response struct {
	Data    any
	Message string
}

var context *gin.Context

// 请求返回值
func SucRes(data any) {
	res := Response{
		data,
		"请求成功!",
	}
	context.JSON(200, res)
}
